<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>成绩提交</title>
</head>
<body>
<%
    String firstNames[]={"张","李","王"};
    ArrayList<String> lastNames= new ArrayList<>();
    lastNames.add("三");
    lastNames.add("四");
    lastNames.add("二");
    HashMap<String,String> classes= new HashMap<>();
    classes.put("math","数学");
    classes.put("english","英语");
    classes.put("javaWeb","javaWeb");

    int score[][]={{80,80,80},{71,85,94},{75,94,66}};

    request.setAttribute("first",firstNames);
    request.setAttribute("last",lastNames);
    request.setAttribute("classes",classes);
    request.setAttribute("score",score);
%>

<h1>成绩</h1>
<ul>
    <li>${first[0]}${last[0]} &nbsp; ${classes["math"]}:${score[0][0]}&nbsp;${classes["english"]}:${score[0][1]}&nbsp;${classes["javaWeb"]}:${score[0][2]}</li>
    <li>${first[1]}${last[1]} &nbsp; ${classes["math"]}:${score[1][0]}&nbsp;${classes["english"]}:${score[1][1]}&nbsp;${classes["javaWeb"]}:${score[1][2]}</li>
    <li>${first[2]}${last[2]} &nbsp; ${classes["math"]}:${score[2][0]}&nbsp;${classes["english"]}:${score[2][1]}&nbsp;${classes["javaWeb"]}:${score[2][2]}</li>
</ul>

</body>
</html>
